﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using EFCore.Sharding.DataAnnotations;
using EFCore.Sharding;

namespace Treca.Message.Entity
{
    /// <summary>
    /// 系统代理客户
    /// </summary>
    [Table("base_customer")]
    [LogicDelete("IsDelete", "0")]
    public class base_customer:BaseEntity
    {

        /// <summary>
        /// 主键
        /// </summary>
        public String Id { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public String UserName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public String Tel { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public String Add { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public String Project { get; set; }

        /// <summary>
        /// 授权代码
        /// </summary>
        public String No { get; set; }

        /// <summary>
        /// 首次交费时间
        /// </summary>
        public DateTime? Payment { get; set; }

        /// <summary>
        /// 交费金额
        /// </summary>
        public Decimal? Amount { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public String Type { get; set; }

        /// <summary>
        /// 期数
        /// </summary>
        public Int64? Sage { get; set; }

        /// <summary>
        /// 下次续费
        /// </summary>
        public DateTime? Renew { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public String IsDelete { get; set; }="1";

        /// <summary>
        /// 描述
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 使用状态
        /// </summary>
        public String StatusFlag { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreateOperator { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public String ModifyOperator { get; set; }

    }
}